package com.vedana.bankmobile.shared;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Bank customer model object.
 * 
 * @author Didier MOISE
 *
 */
public class Customer implements Serializable {
	private static final long serialVersionUID = 7832093660658610324L;

	private long id;
	private String label;
	private List<Account> accounts = new ArrayList<Account>();
	
	/**
	 * @return unique id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id the unique id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return customer label
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * @param label the customer label to set
	 */
	public void setLabel(String label) {
		this.label = label;
	}

	/**
	 * @return accounts list
	 */
	public List<Account> getAccounts() {
		return accounts;
	}

	/**
	 * @param accounts the accounts list to set
	 */
	public void setAccounts(List<Account> accounts) {
		this.accounts = accounts;
	}

	@Override
	public String toString() {
		return "Customer [id=" + id + ", label=" + label + "]";
	}
}
